import './assets/main.css'
import 'element-plus/es/components/message/style/css'
import '@/assets/style/theme.scss'
import '@/assets/style/loading.scss'
import "@/assets/font/iconfont.css"
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPersistedState } from 'pinia-plugin-persistedstate'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
const pinia = createPinia()
pinia.use(createPersistedState())
app.use(pinia)
app.use(router)

app.use(ElementPlus, {
    locale: zhCn,
})

app.mount('#app')
